package com.jeeplus.common.config;

import java.util.HashMap;


/**
 * @Descript: 常量
 * @author zyp
 * @date 2017年5月27日
 */
public class Constant {
	
	//销售订单状态
	public interface SALE_ORDER_STATUS{
		public static int WAIT_PAY = 0;
		public static int WAIT_SEND = 1;
		public static int WAIT_RECEIVE = 2;
		public static int WAIT_EVELUATE = 3;
		public static int FINISH = 4;
		public static int WAIT_PAY_CANCEL = 5;
		public static int WAIT_SEND_CANCEL = 6;
	}
	public interface SALE_ORDER_STATUS_STR{
		public static String WAIT_PAY = "待付款";
		public static String WAIT_SEND = "待发货";
		public static String WAIT_RECEIVE = "待收货";
		public static String WAIT_EVELUATE = "待评价";
		public static String FINISH = "已结束";
		public static String WAIT_PAY_CANCEL = "交易关闭";//待付款交易关闭
		public static String WAIT_SEND_CANCEL = "交易关闭";//待发货交易关闭
	}
	public static HashMap<Integer, String> SALE_ORDER_STATUS_MAP(){
		HashMap<Integer, String> MAP = new HashMap<Integer, String>();
		MAP.put(SALE_ORDER_STATUS.WAIT_PAY, SALE_ORDER_STATUS_STR.WAIT_PAY);
		MAP.put(SALE_ORDER_STATUS.WAIT_SEND, SALE_ORDER_STATUS_STR.WAIT_SEND);
		MAP.put(SALE_ORDER_STATUS.WAIT_RECEIVE, SALE_ORDER_STATUS_STR.WAIT_RECEIVE);
		MAP.put(SALE_ORDER_STATUS.WAIT_EVELUATE, SALE_ORDER_STATUS_STR.WAIT_EVELUATE);
		MAP.put(SALE_ORDER_STATUS.FINISH, SALE_ORDER_STATUS_STR.FINISH);
		MAP.put(SALE_ORDER_STATUS.WAIT_PAY_CANCEL, SALE_ORDER_STATUS_STR.WAIT_PAY_CANCEL);
		MAP.put(SALE_ORDER_STATUS.WAIT_SEND_CANCEL, SALE_ORDER_STATUS_STR.WAIT_SEND_CANCEL);
		return MAP;
	}
	
	//租赁订单状态
	public interface RENT_ORDER_STATUS{
		public static int WAIT_PAY = 0;
		public static int WAIT_SEND = 1;
		public static int WAIT_RECEIVE = 2;
		public static int RENTING = 3;
		public static int FINISH = 4;
		public static int WAIT_EVALUATE = 5;
		public static int END = 6;
		public static int WAIT_PAY_CANCEL = 7;
		public static int WAIT_SEND_CANCEL = 8;
	}
	public interface RENT_ORDER_STATUS_STR{
		public static String WAIT_PAY = "待付款";
		public static String WAIT_SEND = "待发货";
		public static String WAIT_RECEIVE = "已发货";
		public static String RENTING = "租赁中";
		public static String FINISH = "租赁结束";
		public static String WAIT_EVALUATE = "已完成";
		public static String END = "已完成";
		public static String WAIT_PAY_CANCEL = "交易关闭";//待付款交易关闭
		public static String WAIT_SEND_CANCEL = "交易关闭";//待发货交易关闭
	}
	public static HashMap<Integer, String> RENT_ORDER_STATUS_MAP(){
		HashMap<Integer, String> MAP = new HashMap<Integer, String>();
		MAP.put(RENT_ORDER_STATUS.WAIT_PAY, RENT_ORDER_STATUS_STR.WAIT_PAY);
		MAP.put(RENT_ORDER_STATUS.WAIT_SEND, RENT_ORDER_STATUS_STR.WAIT_SEND);
		MAP.put(RENT_ORDER_STATUS.WAIT_RECEIVE, RENT_ORDER_STATUS_STR.WAIT_RECEIVE);
		MAP.put(RENT_ORDER_STATUS.RENTING, RENT_ORDER_STATUS_STR.RENTING);
		MAP.put(RENT_ORDER_STATUS.FINISH, RENT_ORDER_STATUS_STR.FINISH);
		MAP.put(RENT_ORDER_STATUS.END, RENT_ORDER_STATUS_STR.END);
		MAP.put(RENT_ORDER_STATUS.WAIT_EVALUATE, RENT_ORDER_STATUS_STR.WAIT_EVALUATE);
		MAP.put(RENT_ORDER_STATUS.WAIT_PAY_CANCEL, RENT_ORDER_STATUS_STR.WAIT_PAY_CANCEL);
		MAP.put(RENT_ORDER_STATUS.WAIT_SEND_CANCEL, RENT_ORDER_STATUS_STR.WAIT_SEND_CANCEL);
		return MAP;
	}
	

	// 售后单状态
	public interface RETURN_GOODS_STATUS {
		public static int WAIT_CHECK = 0;
		public static int AGREE = 1;
		public static int WAIT_RECEIVE = 2;
		public static int FINISH = 3;
		public static int REFUSE = 4;
	}

	public interface RETURN_GOODS_STATUS_STR {
		public static String WAIT_CHECK = "审核中";
		public static String AGREE = "已同意";//后台审核已同意，等待买家退货
		public static String WAIT_RECEIVE = "已同意";//等待客服收货
		public static String FINISH = "售后成功";
		public static String REFUSE = "已拒绝";
	}

	public static HashMap<Integer, String> RETURN_GOODS_STATUS_MAP() {
		HashMap<Integer, String> MAP = new HashMap<Integer, String>();
		MAP.put(RETURN_GOODS_STATUS.WAIT_CHECK, RETURN_GOODS_STATUS_STR.WAIT_CHECK);
		MAP.put(RETURN_GOODS_STATUS.AGREE, RETURN_GOODS_STATUS_STR.AGREE);
		MAP.put(RETURN_GOODS_STATUS.WAIT_RECEIVE, RETURN_GOODS_STATUS_STR.WAIT_RECEIVE);
		MAP.put(RETURN_GOODS_STATUS.FINISH, RETURN_GOODS_STATUS_STR.FINISH);
		MAP.put(RETURN_GOODS_STATUS.REFUSE, RETURN_GOODS_STATUS_STR.REFUSE);
		return MAP;
	}

}
